package com.simple.crawler.constant;

public enum SetterFrom {

    CACHE("cache", "从缓存中取"),
    DOC("doc", "从爬虫爬取到文档中取");

    private String code;

    private String desc;

    SetterFrom(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "SetterFrom{" +
                "code='" + code + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

}
